Laman

Tugas1_2


APLIKASI INPUT DATA MAHASISWA
MENGGUNAKAN KEYPRESS
Private Sub Cmdbatal_Click()
Text1 = ""
Text2 = ""
Text3 = ""
Text1.SetFocus
End Sub

Private Sub Cmdkeluar_Click()
Unload Me
End Sub

Private Sub Cmdlagi_Click()
Text1 = ""
Text2 = ""
Text3 = ""
Text1.SetFocus
End Sub


Private Sub text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text3.SetFocus
End If
End Sub

Tidak ada komentar:

Posting Komentar